package DataStructures.Project3.Group3.s12cs342;

import java.io.Serializable;
import java.util.ArrayList;

public class QuizContainer implements Serializable {
        String name, description, subject;
        ArrayList<QuestionContainer> questions;
       
        /**
         * Constructor to create a quiz without questions to be loaded in
         *
         * @param name - name of the quiz
         * @param description - description of the quiz
         * @param subject - what subject the quiz will generally be on
         */
        public QuizContainer(String name, String description, String subject){
                this.name = name;
                this.description = description;
                this.subject = subject;
                this.questions = new ArrayList<QuestionContainer>();
        }
       
        /**
         * Constructor to create a quiz with questions loaded in
         *
         * @param name - name of the quiz
         * @param description - description of the quiz
         * @param subject - what subject the quiz will generally be on
         * @param questions - the list of questions the quiz will have
         */
        public QuizContainer(String name, String description, String subject, ArrayList<QuestionContainer> questions){
                this.name = name;
                this.description = description;
                this.subject = subject;
                this.questions = questions;
        }
       
        public void addQuestion(QuestionContainer qc){
                this.questions.add(qc);
        }
        public String getQuizName(){
        	return name;
        }
        public String getQuizDescription(){
        	return description;
        }
        public String getQuizSubject(){
        	return subject;
        }
        public ArrayList<QuestionContainer> getQuizQuestions(){
        	return this.questions;
        }
}


